package com.example.orderform.lmpl;

import com.example.orderform.dao.PaymentMapper;
import com.example.orderform.server.PaymentServer;
import com.example.orderform.vo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaymentLmpl implements PaymentServer {
    @Autowired
    PaymentMapper paymentMapper;



    @Override
    public int paycha(int userid) {
        return paymentMapper.paycha(userid);
    }

    @Override
    public List<Order> fenyecha(int q,int j,int userid) {
        return paymentMapper.fenyecha(q, j,userid);
    }

    @Override
    public Order payorderxq(int orderid) {
        return paymentMapper.payorderxq(orderid);
    }

    @Override
    public int qx(String orderid, String cancel) {
        return paymentMapper.qx(orderid,cancel);
    }

    @Override
    public String djs(int orderid) {
        return paymentMapper.djs(orderid);
    }

    @Override
    public int gb(int orderid) {
        return paymentMapper.gb(orderid);
    }

    @Override
    public String comitydescription(int orderid) {
        return paymentMapper.comitydescription(orderid);
    }

    @Override
    public int updatedd(String ordernumber) {
        return paymentMapper.updatedd(ordernumber);
    }


}
